package org.example.myleet.p745;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        WordFilter wordFilter = new WordFilter(new String[]{"apple","applele","applezd","gjj","apple"});
        Assert.isTrue(4 == wordFilter.f("a", "e"));
        Assert.isTrue(-1 == wordFilter.f("a", "j"));
        Assert.isTrue(2 == wordFilter.f("a", "d"));
        Assert.isTrue(4 == wordFilter.f("apple", "e"));
    }
}
